package com.lagou.user.service;

import javax.servlet.http.HttpServletResponse;

/**
 * @author jacken
 * @date 2020/4/25 10:27 PM
 */
public interface UserService {

  /**
   * 注册
   *
   * @param email
   * @param password
   * @param code
   * @param response
   * @return
   */
  Boolean register(String email, String password, String code, HttpServletResponse response);

  /**
   * 是否注册
   *
   * @param email
   * @return
   */
  Boolean isRegister(String email);

  /**
   * 登录
   *
   * @param email
   * @param password
   * @param response
   * @return
   */
  String login(String email, String password, HttpServletResponse response);

  /**
   * 根据token查询用户信息
   *
   * @param token
   * @return
   */
  String userInfo(String token);

}
